<?php
/**
 * Created by PhpStorm.
 * User: wtd
 * Date: 2019/12/19
 * Time: 10:55
 */
namespace app\api\controller;
use think\Request;
use Firebase\JWT\JWT;
use think\Controller;
class BaseController extends Controller
{
public function return_msg($code,$msg,$data=[])
{
    return json_encode(['code'=>$code,'msg'=>$msg,'data'=>$data],JSON_UNESCAPED_UNICODE);
}
}